#ifndef SETWIG_H
#define SETWIG_H

#include <QWidget>
#include <QString>
#include <QDebug>
#include<QJsonDocument>
#include<QJsonObject>
#include<QJsonArray>
#include <QTimer>


namespace Ui {
class SetWig;
}

class SetWig : public QWidget
{
    Q_OBJECT

public:
    explicit SetWig(QWidget *parent = 0);
    void light_show(bool data);
    ~SetWig();

public slots:


//    void on_m_slider1_valueChanged(int value);

//    void on_m_slider2_valueChanged(int value);

    void on_comboBox_activated(int index);

    void on_pushButton_2_clicked();

    void dataUpSlots1(const QByteArray &msg);

    void checkSlots();

private slots:
    void on_m_temp_add_clicked();

    void on_m_temp_reduce_clicked();

    void on_m_humi_add_clicked();

    void on_m_humi_reduce_clicked();

    void on_pushButton_clicked();

private:
    Ui::SetWig *ui;
    int temp_threshold;
    int humi_threshold;
    QString m_type;
    bool m_state;
    QTimer* timer;
    bool temp1;
    bool temp2;
    bool humi1;
    bool humi2;
    bool Humidifier;
};

#endif // SETWIG_H
